#include <QCoreApplication>
#include <QDebug>
#include "myclass.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    myClass *mc = new myClass();
    QObject::connect(mc, &myClass::mysig, mc, &myClass::myslot);
    QObject::connect(mc, &myClass::mysig, [](int x){
        qDebug()<<"my lamda:"<< x << endl;
    });
    QObject::connect(mc, &myClass::mysig, &myClass::myslot2);
    mc->trigger_sig(3);
    return a.exec();
}


